<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改招聘岗位')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-post-edit" th:object="${cngjPost}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">岗位名称：</label>
                <div class="col-sm-8">
                    <input name="postName" th:field="*{postName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">工作年限：</label>
                <div class="col-sm-8">
                    <input name="postJobYear" th:field="*{postJobYear}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">招聘城市：</label>
                <div class="col-sm-8">
                    <input name="postCity" th:field="*{postCity}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">招聘学历：</label>
                <div class="col-sm-8">
                    <input name="postEducation" th:field="*{postEducation}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">职责描述：</label>
                <div class="col-sm-8">
                    <textarea name="postDuty" maxlength="500" class="form-control" rows="3">[[*{postDuty}]]</textarea>
                    <!--<input name="postDuty" th:field="*{postDuty}" class="form-control" type="text">-->
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">任职要求：</label>
                <div class="col-sm-8">
                    <textarea name="postRequirement" maxlength="500" class="form-control" rows="3">[[*{postRequirement}]]</textarea>
                    <!--<input name="postRequirement" th:field="*{postRequirement}" class="form-control" type="text">-->
                </div>
            </div>
            <!--<div class="form-group">
                <label class="col-sm-3 control-label is-required">排序 数字自增 倒叙：</label>
                <div class="col-sm-8">
                    <input name="postSort" th:field="*{postSort}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态 1启用 0禁用：</label>
                <div class="col-sm-8">
                    <select name="postState" class="form-control m-b" th:with="type=${@dict.getType('cngj_state')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{postState}"></option>
                    </select>
                </div>
            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "cngj/post";
        $("#form-post-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-post-edit').serialize());
            }
        }
    </script>
</body>
</html>